home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / wdj0697.zip / TECHTIPS.ZIP / TIPSVIEW.H < prev   
C/C++ Source or Header  |  1996-06-04  |  1KB  |  52 lines

  1. // TipsView.h : interface of the CTipsView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CTipsView : public CView
  6. {
  7. protected: // create from serialization only
  8.     CTipsView();
  9.     DECLARE_DYNCREATE(CTipsView)
  10.  
  11. // Attributes
  12. public:
  13.     CTipsDoc* GetDocument();
  14.  
  15. // Operations
  16. public:
  17.  
  18. // Overrides
  19.     // ClassWizard generated virtual function overrides
  20.     //{{AFX_VIRTUAL(CTipsView)
  21.     public:
  22.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  23.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  24.     protected:
  25.     //}}AFX_VIRTUAL
  26.  
  27. // Implementation
  28. public:
  29.     virtual ~CTipsView();
  30. #ifdef _DEBUG
  31.     virtual void AssertValid() const;
  32.     virtual void Dump(CDumpContext& dc) const;
  33. #endif
  34.  
  35. protected:
  36.     virtual int OnToolHitTest(CPoint point, TOOLINFO* pTI) const ;
  37.  
  38. // Generated message map functions
  39. protected:
  40.     //{{AFX_MSG(CTipsView)
  41.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  42.     //}}AFX_MSG
  43.     DECLARE_MESSAGE_MAP()
  44. };
  45.  
  46. #ifndef _DEBUG  // debug version in TipsView.cpp
  47. inline CTipsDoc* CTipsView::GetDocument()
  48.    { return (CTipsDoc*)m_pDocument; }
  49. #endif
  50.  
  51. /////////////////////////////////////////////////////////////////////////////
  52.